package com.waylau.controller;


import com.waylau.service.CityClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CityController {

   @Autowired
   private CityClient cityClient;

    @GetMapping("citys")
    public String cityList(){

        return cityClient.listCity();
    }


}
